package oop.ex2.enums;

import java.util.regex.Pattern;

public enum ValueTypes {
	STRING("\\s*\".+\"\\s*|\\s*)"),
	INT("\\s*\\d+\\s*;|\\s*;)"),
	DOUBLE("\\s*\\d+\\.*\\d*\\s*|\\s*)"),
	CHAR("\\s*\'.\'\\s*|\\s*)"),
	BOOLEAN("\\s*(true|false|-*\\d+\\.*\\d*)\\s*|\\s*)");
	
private Pattern patt;
	
	private ValueTypes(String expression){
		patt=Pattern.compile(expression);
	}
	
	public Pattern getPattern(){
		return patt;
	}
}
